package com.china.bank.demo.service.impl;

import com.china.bank.demo.dto.BankDto;
import com.china.bank.demo.service.BankService;
import org.springframework.stereotype.Service;

import java.util.ArrayList;
import java.util.List;

/**
 * Description: 银行管理 .<br>
 *
 * @author m-xy
 *     Created By 2019/10/22 15:34
 */
@Service
public class BankServiceImpl implements BankService {
    @Override
    public List<BankDto> queryBanks(String name) {
        List<BankDto> banks = new ArrayList<>();
        {
            BankDto bankDto = new BankDto();
            bankDto.setBankId("10001");
            bankDto.setBankName("中国银行");
            bankDto.setBankAddress("大连中山区中银大厦");
            banks.add(bankDto);
        }
        {
            BankDto bankDto = new BankDto();
            bankDto.setBankId("10002");
            bankDto.setBankName("大连银行");
            bankDto.setBankAddress("大连市华南广场亿合城对面");
            banks.add(bankDto);
        }
        {
            BankDto bankDto = new BankDto();
            bankDto.setBankId("10003");
            bankDto.setBankName("招商银行");
            bankDto.setBankAddress("大连市马栏广场");
            banks.add(bankDto);
        }
        return banks;
    }
}
